package com.xc.freeapp.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.wordnik.swagger.annotations.ApiModelProperty;
/**
 * 
 * @author wukailuo
 *  定时吃药
 */
public class Takemedic implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private    Integer   id;
	 @ApiModelProperty(value="用户id")
	private    Integer   userid;
	 @NotNull(message="药品名称不能为空")
	 @ApiModelProperty(value="药品名")
	private    String   medicname;
	 
	 @ApiModelProperty(value="提醒时间")
	private    String   taketime;
	 
	 @ApiModelProperty(value="")
	 private List<Integer> taketimelist;
	 
	 @NotNull(message="用量不能为空")
	 @ApiModelProperty(value="用量")
	private    String   useweight;
	 @NotNull(message="周期不能为空")
	 @ApiModelProperty(value="周期")
	private    Integer   period;
	 @NotNull
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	 @ApiModelProperty(value="开始时间")
	private    Date     begindate;
	 @ApiModelProperty(value="")
	private    String   pics;
	 @ApiModelProperty(value="")
	private List<String> picslist;
	
	public List<Integer> getTaketimelist() {
		return taketimelist;
	}
	public void setTaketimelist(List<Integer> taketimelist) {
		this.taketimelist = taketimelist;
	}
	public List<String> getPicslist() {
		return picslist;
	}
	public void setPicslist(List<String> picslist) {
		this.picslist = picslist;
	}
	private    String   remark;
	private    Integer    createby;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private    Date   createtime;
	private    Integer    updateby;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private    Date   updatetime;
	private    char   delflag;
	public Takemedic() {
		super();
	}
	public Takemedic(Integer id, Integer userid, String medicname, String taketime, String useweight,
			Integer period,Date begindate, String pics, String remark, Integer createby, Date createtime, Integer updateby, Date updatetime,
			char delflag) {
		super();
		this.id = id;
		this.userid = userid;
		this.medicname = medicname;
		this.taketime = taketime;
		this.useweight = useweight;
		this.begindate=begindate;
		this.period = period;
		this.pics = pics;
		this.remark = remark;
		this.createby = createby;
		this.createtime = createtime;
		this.updateby = updateby;
		this.updatetime = updatetime;
		this.delflag = delflag;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public String getMedicname() {
		return medicname;
	}
	public void setMedicname(String medicname) {
		this.medicname = medicname;
	}
	public String getTaketime() {
		return taketime;
	}
	public void setTaketime(String taketime) {
		this.taketime = taketime;
	}
	public String getUseweight() {
		return useweight;
	}
	public void setUseweight(String useweight) {
		this.useweight = useweight;
	}
	public Integer getPeriod() {
		return period;
	}
	public void setPeriod(Integer period) {
		this.period = period;
	}
	public String getPics() {
		return pics;
	}
	public void setPics(String pics) {
		this.pics = pics;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getCreateby() {
		return createby;
	}
	public void setCreateby(Integer createby) {
		this.createby = createby;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Integer getUpdateby() {
		return updateby;
	}
	public void setUpdateby(Integer updateby) {
		this.updateby = updateby;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	public char getDelflag() {
		return delflag;
	}
	public void setDelflag(char delflag) {
		this.delflag = delflag;
	}
	public Date getBegindate() {
		return begindate;
	}
	public void setBegindate(Date begindate) {
		this.begindate = begindate;
	}  
}